package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.entity.Dondxi;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ObjectMapper extends BaseMapper<Dondxi> {

    @Select("SELECT a.username,a.objectname,a.objectprice,a.image from shoppingcard a where a.username = #{username} ")
    List<Dondxi> findobject(String username);
}
